 <?php
class test_test extends Bout {


	function build() {
		try{
			$qg = new ZzSQLReadingQueryGenerator('infouser');
			$qg->need('name');
			$qg->need('nickname');
			
			$qg->defCriteria('nickname','=',array('admin','albert'));
			$qg->addCriteriaOrder('name');
			
			while($qg->hasMoreResults()) {
				echo $qg->get('name')->out(),':';
				echo $qg->get('nickname')->out();
				echo '<br/>';
				$qg->moveNextResult();
			}
		}
		catch(Exception $e) {
			echo $e;
		}
		
		/*$qg->set('nickname','albert');
		$qg->set('name','albert');
		//$qg->rm();
		if($qg->validate())
			$qg->save();
		else
			return 'error';*/
		return time();
	}
	
	function buildStatic() {}
	
}
?>